		<?php 			
			$img = Yii::app()->params['uploadCategoryPath'].Category::getCategoryName($data->cate_id).'_thumb.jpg';
//			echo $img;
			/**
			 * 改路径为相对路径加“.”
			 */
			if(!file_exists('.'.$img)){
				$img = '/images/audio.png';
			}
		?>

<div class="view">
	<div class="form-img" style="float:right; width:150px; margin-left:10px;">
		<div class="gallery">
		<?php 
		if(isset($_GET['id'])):
			echo CHtml::link(CHtml::image($img,$data->cate_name,array('class'=>'thumb_img','width'=>120)),array('thumbnails','id'=>$data->cate_id,'pid'=>$_GET['id']));
		else:
		?>
		<a href="<?php echo $img;?>" rel="example_group">
		<?php //echo CHtml::image($thumb_destination,$data->file_name,array('class'=>'thumb_img','width'=>120));?>
		</a>
		<?php 
		endif;
		?>
		</div>
	</div>
	<div class="form-des" style=" width:350px; margin-left:10px;">
		<b>图集:</b>
		<?php echo CHtml::link(CHtml::encode($data->cate_name), array('/gallery/view', 'id'=>$data->cate_id)); ?>
		<br />

		<?php echo CHtml::encode($data->cate_des); ?>
		<br />
		
	</div>
	<hr class="space" />
	<div class="gallery-item-list" style="background:#e8e8e8; display:none; text-align:center;" class="space">
		<img alt="loading" src="/images/loading.gif" />
	</div>
</div>
